//
//  YT_ShutdownCommand.swift
//  CommandPattern
//
//  Created by aron on 2017/6/4.
//  Copyright © 2017年 aron. All rights reserved.
//

import UIKit

class YT_ShutdownCommand: YT_ComputerCommand {
    
    private var receiver : YT_Computer?
    
    init(receiver : YT_Computer) {
        self.receiver = receiver
    }
    
    func execute() {
        print("Shutdown command execute")
        self.receiver?.shutdown()
    }
}
